package algorithms.bloom;

import configuration.Configuration;

/**
 * @author Nodirjon Siddikov
 */
public class GlobalCacheBlock {
	// instance variables
	private int _clk; // reference clock counter
	private boolean _isOriginal; // originality of the remote cache block
	private int _diskBlockID; // disk address that this entry is holding
	private int _size; // size of the remote cache block
	// constructor

	public GlobalCacheBlock(int diskBlockID, int clk, boolean isOriginal) {
		_diskBlockID = diskBlockID;
		_clk = clk; // initialize the clock
		_isOriginal = isOriginal;
		_size = Configuration.globalCacheBlockSize; // read from config file
	}

	// get disk block ID
	public int getDiskBlockID() {
		return _diskBlockID;
	}

	// get the clock of the entry
	public int getClock() {
		return _clk;
	}

	// get the originality of the remote cache block
	public boolean isOriginal() {
		return _isOriginal;
	}

	// get the size of remote cache block
	public int getSize() {
		return _size;
	}
}